<?php

namespace app\library\facade;

use Elasticsearch\ClientBuilder;

class Es extends Facade
{
    public static function createFacade(){
        return   $client = ClientBuilder::create()
            ->setHosts([
                Config::get("es.host") . ":" . Config::get("es.port")
            ])
            ->build();
    }
}